home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / doeo.swf / scripts / DefineSprite_764 / frame_822 / PlaceObject3_733_2 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2013-04-24  |  344b  |  21 lines

  1. onClipEvent(enterFrame){
  2.    xx++;
  3.    if(xx >= 20)
  4.    {
  5.       _Y = _Y + 40;
  6.       if(this.hitTest(_parent.stopp))
  7.       {
  8.          _Y = -200;
  9.          _X = random(550);
  10.          if(random(2) == 1)
  11.          {
  12.             _xscale = 100;
  13.          }
  14.          else
  15.          {
  16.             _xscale = -100;
  17.          }
  18.       }
  19.    }
  20. }
  21.